<?php
/**
 * 系統名稱: Lotto 系統
 * 檔案說明: 專案管理-修改
 * $Author$
 * $Id$
 *
 */
include_once("../../config.inc.php");
session_start();
$_LangPath = "personalsetup";
include_once(__Language_Path."/selectlanguage_admin.php");
include_once(__Admin_Path."/logincheck.php");

$arrPower = CheckUsePower("PersonalSetup");
if($arrPower === false)ErrMsgOutputHTML("Error", "", 1);

/************************************************************************************/
//更新資料
/************************************************************************************/
if ($_data[ActionType] == 'WriteSetup') {

	$UpdateConant	= '';

	if ($_data[MainOverBetOn]) {
		$UpdateConant	.= " `bA_MainOverBetOn` = '$_data[MainOverBetOn]', `bA_MainOverBet` = '$_data[MainOverBet]', `bA_MainOverBetColor` = '$_data[MainOverBetColor]',";
	} else {
		$UpdateConant	.= " `bA_MainOverBetOn` = '0',";
	}
	
	if ($_data[MainSingleEvenOverBetOn]) {
		$UpdateConant	.= " `bA_MainSingleEvenOverBetOn` = '$_data[MainSingleEvenOverBetOn]', `bA_MainSingleEvenOverBet` = '$_data[MainSingleEvenOverBet]', `bA_MainSingleEvenOverBetColor` = '$_data[MainSingleEvenOverBetColor]',";
	} else {
		$UpdateConant	.= " `bA_MainSingleEvenOverBetOn` = '0',";
	}
	
	if ($_data[MainProportionOverBetOn]) {
		$UpdateConant	.= " `bA_MainProportionOverBetOn` = '$_data[MainProportionOverBetOn]', `bA_MainProportionOverBet` = '$_data[MainProportionOverBet]', `bA_MainProportionOverBetColor` = '$_data[MainProportionOverBetColor]',";
	} else {
		$UpdateConant	.= " `bA_MainProportionOverBetOn` = '0',";
	}
	
	if ($_data[SpecialOverBetOn]) {
		$UpdateConant	.= " `bA_SpecialOverBetOn` = '$_data[SpecialOverBetOn]', `bA_SpecialOverBet` = '$_data[SpecialOverBet]', `bA_SpecialOverBetColor` = '$_data[SpecialOverBetColor]',";
	} else {
		$UpdateConant	.= " `bA_SpecialOverBetOn` = '0',";
	}
	
	if ($_data[SpecialSingleEvenOverBetOn]) {
		$UpdateConant	.= " `bA_SpecialSingleEvenOverBetOn` = '$_data[SpecialSingleEvenOverBetOn]', `bA_SpecialSingleEvenOverBet` = '$_data[SpecialSingleEvenOverBet]', `bA_SpecialSingleEvenOverBetColor` = '$_data[SpecialSingleEvenOverBetColor]',";
	} else {
		$UpdateConant	.= " `bA_SpecialSingleEvenOverBetOn` = '0',";
	}

	if ($_data[SpecialProportionOverBetOn]) {
		$UpdateConant	.= " `bA_SpecialProportionOverBetOn` = '$_data[SpecialProportionOverBetOn]', `bA_SpecialProportionOverBet` = '$_data[SpecialProportionOverBet]', `bA_SpecialProportionOverBetColor` = '$_data[SpecialProportionOverBetColor]',";
	} else {
		$UpdateConant	.= " `bA_SpecialProportionOverBetOn` = '0',";
	}

	$UpdateConant	= substr($UpdateConant, 0, -1);
	$OverBetUpdateSQL = "UPDATE `bet_AlertOverBet` SET $UpdateConant WHERE `bA_MemID` = '". $_SESSION["Admin_Info"]->ID ."'";
	//echo $UpdateConant;
	$RS = @PMA_mysql_query($OverBetUpdateSQL, $_ConnMaster);
	$ActionMessage = $_strPersonalSetup["UpdateSuccess"];
}

/************************************************************************************/
//讀取資料
/************************************************************************************/
$OverBetSQL = "SELECT * FROM `bet_AlertOverBet` WHERE `bA_MemID` = '". $_SESSION["Admin_Info"]->ID ."'";
$RS = @PMA_mysql_query($OverBetSQL, $_ConnMaster);
if (!$RS) {
	ErrMsgOutputHTML("Error", "", 1);
} else {
	//第一次設定初始化
	if(PMA_mysql_num_rows($RS) == 0){
		$OverBetInsertSQL = "INSERT INTO `bet_AlertOverBet` ( `bA_ID` , `bA_MemID` , `bA_MainOverBetOn` , `bA_MainOverBet` , `bA_MainOverBetColor` , `bA_MainSingleEvenOverBetOn` , `bA_MainSingleEvenOverBet` , `bA_MainSingleEvenOverBetColor` , `bA_MainProportionOverBetOn` , `bA_MainProportionOverBet` , `bA_MainProportionOverBetColor` , `bA_SpecialOverBetOn` , `bA_SpecialOverBet` , `bA_SpecialOverBetColor` , `bA_SpecialSingleEvenOverBetOn` , `bA_SpecialSingleEvenOverBet` , `bA_SpecialSingleEvenOverBetColor` , `bA_SpecialProportionOverBetOn` , `bA_SpecialProportionOverBet` , `bA_SpecialProportionOverBetColor` ) VALUES 
					('', '".$_SESSION[Admin_Info]->ID."', '0', '0', '#FFFFFF', '0', '0', '#FFFFFF', '0', '0', '#FFFFFF', '0', '0', '#FFFFFF', '0', '0', '#FFFFFF', '0', '0', '#FFFFFF')";
				
		$RS = @PMA_mysql_query($OverBetInsertSQL, $_ConnMaster);
		if (!mysql_affected_rows()) {
			$ActionMessage = $_strPersonalSetup["InsertFail"];
		} else {
			$ActionMessage = $_strPersonalSetup["InsertSuccess"];
		}

		$Obj->bA_MainOverBetOn			= '0';
		$Obj->bA_MainOverBet			= '0';
		$Obj->bA_MainOverBetColor		= '#FFFFFF';
		$Obj->bA_MainSingleEvenOverBetOn	= '0';
		$Obj->bA_MainSingleEvenOverBet		= '0';
		$Obj->bA_MainSingleEvenOverBetColor	= '#FFFFFF';
		$Obj->bA_MainProportionOverBetOn	= '0';
		$Obj->bA_MainProportionOverBet		= '0';
		$Obj->bA_MainProportionOverBetColor	= '#FFFFFF';
		$Obj->bA_SpecialOverBetOn		= '0';
		$Obj->bA_SpecialOverBet			= '0';
		$Obj->bA_SpecialOverBetColor		= '#FFFFFF';
		$Obj->bA_SpecialSingleEvenOverBetOn	= '0';
		$Obj->bA_SpecialSingleEvenOverBet	= '0';
		$Obj->bA_SpecialSingleEvenOverBetColor	= '#FFFFFF';
		$Obj->bA_SpecialProportionOverBetOn	= '0';
		$Obj->bA_SpecialProportionOverBet	= '0';
		$Obj->bA_SpecialProportionOverBetColor	= '#FFFFFF';
		$ActionMessage 				= $_strPersonalSetup["FristSetup"].$ActionMessage;
	} else {
		$Obj = PMA_mysql_fetch_object($RS);
	}
	@mysql_free_result($RS);
}	

?>

<html>
<head>
<meta content="text/html; charset=utf-8 echo $_Charset;?>" http-equiv="content-type">
<link rel="stylesheet" href="/css/backend.css" type="text/css">
</head>
<body>
<script language="javascript">
	var LayerX = 0;
	var LayerY = 0;
	var NowColumns = '';
	
	function ShowColorLayer(TargetColumns) {
		CheckBoxObj 	= eval("window.OverBet." + TargetColumns + "On");

		if (!CheckBoxObj.checked) {
			window.alert("<?php echo $_strPersonalSetup["OpenSetupFrist"];?>");
			return;
		}

		ColorLayer.style.top		= LayerY = event.y - 32;
		ColorLayer.style.left		= LayerX = event.x - 39;
		NowColumns			= TargetColumns + 'Color';
		ColorLayer.style.display	= '';
	}

	function HiddenColorLayer() {
		if (LayerX >= event.x || LayerX + 78 <= event.x || LayerY >= event.y || LayerY + 65 <= event.y) {
			ColorLayer.style.display = 'none';
			NowColumns = '';
		}	
	}
	
	function SetColor(ChoiceColor) {
		if (NowColumns == '') {
			window.alert('Error!!!');
			return;
		}

		eval("window.OverBet." + NowColumns + ".value = \"#" + ChoiceColor + "\"");
		eval("window.OverBet." + NowColumns + ".style.background = \"#" + ChoiceColor + "\"");
	}
	
	function SetFormStatus(ColumnsName) {
		CheckBoxObj 	= eval("window.OverBet." + ColumnsName + "On");
		Obj 		= eval("window.OverBet." + ColumnsName);
		ColorObj 	= eval("window.OverBet." + ColumnsName + "Color");

		if (!CheckBoxObj.checked) {
			Obj.disabled 			= true;
			ColorObj.disabled 		= true;
			ColorObj.style.background 	= "#FFFFFF";
		} else {
			Obj.disabled 			= false;
			ColorObj.disabled 		= false;
			ColorObj.style.background 	= ColorObj.value;
		}
	}

	function CheckNum(Obj) {
		var i, j, strTemp; 
		strTemp = "0123456789";

		for (i = 0 ; i < Obj.length ; i++) {
			j = strTemp.indexOf(Obj.charAt(i));
			if (j == -1) { 
				return false; 
			} 
		} 
		return true; 
	} 

	function CheckOverBet() {
		if (window.OverBet.MainOverBetOn.checked) {
			if (window.OverBet.MainOverBet.value < 0) {
				window.OverBet.MainOverBet.value = 0;
			} else if (!CheckNum(window.OverBet.MainOverBet.value)) {
				window.alert("<?php echo $_strPersonalSetup["MainOverBetMsg"];?>");
				return false;
			}
		}
			
		if (window.OverBet.MainSingleEvenOverBetOn.checked) {
			if (window.OverBet.MainSingleEvenOverBet.value < 0) {
				window.OverBet.MainSingleEvenOverBet.value = 0;
			} else if (!CheckNum(window.OverBet.MainSingleEvenOverBet.value)) {
				window.alert("<?php echo $_strPersonalSetup["MainSingleEvenOverBetMsg"];?>");
				return false;
			}
		}

		if (window.OverBet.MainProportionOverBetOn.checked) {
			if (window.OverBet.MainProportionOverBet.value < 0) {
				window.OverBet.MainProportionOverBet.value = 0;
			} else if (!CheckNum(window.OverBet.MainProportionOverBet.value)) {
				window.alert("<?php echo $_strPersonalSetup["MainProportionOverBetMsg"];?>");
				return false;
			}
		}

		if (window.OverBet.SpecialOverBetOn.checked) {
			if (window.OverBet.SpecialOverBet.value < 0) {
				window.OverBet.SpecialOverBet.value = 0;
			} else if (!CheckNum(window.OverBet.SpecialOverBet.value)) {
				window.alert("<?php echo $_strPersonalSetup["SpecialOverBetMsg"];?>");
				return false;
			}
		}

		if (window.OverBet.SpecialSingleEvenOverBetOn.checked) {
			if (window.OverBet.SpecialSingleEvenOverBet.value < 0) {
				window.OverBet.SpecialSingleEvenOverBet.value = 0;
			} else if (!CheckNum(window.OverBet.SpecialSingleEvenOverBet.value)) {
				window.alert("<?php echo $_strPersonalSetup["SpecialSingleEvenOverBetMsg"];?>");
				return false;
			}
		}

		if (window.OverBet.SpecialProportionOverBetOn.checked) {
			if (window.OverBet.SpecialProportionOverBet.value < 0) {
				window.OverBet.SpecialProportionOverBet.value = 0;
			} else if (!CheckNum(window.OverBet.SpecialProportionOverBet.value)) {
				window.alert("<?php echo $_strPersonalSetup["SpecialProportionOverBetMsg"];?>");
				return false;
			}
		}
		
		return true;
	}
</script>
<div id="ColorLayer" style="display=none; position:absolute; width:78px; height:65px; overflow: visible;" onMouseOut="javascript:HiddenColorLayer()">
<table width="78" height="65" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <TD bgcolor=#666666 width="13" height="13"><A HREF="javascript:SetColor('666666')"><img border="0" src="#" width="13" height="13"></A></TD>
    <TD bgcolor=#8F8F8F width="13" height="13"><A HREF="javascript:SetColor('8F8F8F')"><img border="0" src="#" width="13" height="13"></A></TD>
    <TD bgcolor=#999999 width="13" height="13"><A HREF="javascript:SetColor('999999')"><img border="0" src="#" width="13" height="13"></A></TD>
    <TD bgcolor=#AFB0AF width="13" height="13"><A HREF="javascript:SetColor('AFB0AF')"><img border="0" src="#" width="13" height="13"></A></TD>
    <TD bgcolor=#CCCCCC width="13" height="13"><A HREF="javascript:SetColor('CCCCCC')"><img border="0" src="#" width="13" height="13"></A></TD>
    <TD bgcolor=#FFFFFF width="13" height="13"><A HREF="javascript:SetColor('FFFFFF')"><img border="0" src="#" width="13" height="13"></A></TD>
  </tr>
  <tr>
    <TD bgcolor=#FF0000 width="13" height="13"><A HREF="javascript:SetColor('FF0000')"><img border="0" src="#" width="13" height="13"></A></TD>
    <TD bgcolor=#FFFF00 width="13" height="13"><A HREF="javascript:SetColor('FFFF00')"><img border="0" src="#" width="13" height="13"></A></TD>
    <TD bgcolor=#00FF00 width="13" height="13"><A HREF="javascript:SetColor('00FF00')"><img border="0" src="#" width="13" height="13"></A></TD>
    <TD bgcolor=#00FFFF width="13" height="13"><A HREF="javascript:SetColor('00FFFF')"><img border="0" src="#" width="13" height="13"></A></TD>
    <TD bgcolor=#0000FF width="13" height="13"><A HREF="javascript:SetColor('0000FF')"><img border="0" src="#" width="13" height="13"></A></TD>
    <TD bgcolor=#FF00FF width="13" height="13"><A HREF="javascript:SetColor('FF00FF')"><img border="0" src="#" width="13" height="13"></A></TD>
  </tr>
  <tr>
    <TD bgcolor=#CF0030 width="13" height="13"><A HREF="javascript:SetColor('CF0030')"><img border="0" src="#" width="13" height="13"></A></TD>
    <TD bgcolor=#FFEF00 width="13" height="13"><A HREF="javascript:SetColor('FFEF00')"><img border="0" src="#" width="13" height="13"></A></TD>
    <TD bgcolor=#00974F width="13" height="13"><A HREF="javascript:SetColor('00974F')"><img border="0" src="#" width="13" height="13"></A></TD>
    <TD bgcolor=#009F9F width="13" height="13"><A HREF="javascript:SetColor('009F9F')"><img border="0" src="#" width="13" height="13"></A></TD>
    <TD bgcolor=#00AFDF width="13" height="13"><A HREF="javascript:SetColor('00AFDF')"><img border="0" src="#" width="13" height="13"></A></TD>
    <TD bgcolor=#0077AF width="13" height="13"><A HREF="javascript:SetColor('0077AF')"><img border="0" src="#" width="13" height="13"></A></TD>
  </tr>
  <tr>
    <TD bgcolor=#004F90 width="13" height="13"><A HREF="javascript:SetColor('004F90')"><img border="0" src="#" width="13" height="13"></A></TD>
    <TD bgcolor=#20106F width="13" height="13"><A HREF="javascript:SetColor('20106F')"><img border="0" src="#" width="13" height="13"></A></TD>
    <TD bgcolor=#9F8FBF width="13" height="13"><A HREF="javascript:SetColor('9F8FBF')"><img border="0" src="#" width="13" height="13"></A></TD>
    <TD bgcolor=#AF97BF width="13" height="13"><A HREF="javascript:SetColor('AF97BF')"><img border="0" src="#" width="13" height="13"></A></TD>
    <TD bgcolor=#C09FBF width="13" height="13"><A HREF="javascript:SetColor('C09FBF')"><img border="0" src="#" width="13" height="13"></A></TD>
    <TD bgcolor=#60B8B0 width="13" height="13"><A HREF="javascript:SetColor('60B8B0')"><img border="0" src="#" width="13" height="13"></A></TD>
  </tr>
  <tr>
    <TD bgcolor=#5FBFEF width="13" height="13"><A HREF="javascript:SetColor('5FBFEF')"><img border="0" src="#" width="13" height="13"></A></TD>
    <TD bgcolor=#8F679F width="13" height="13"><A HREF="javascript:SetColor('8F679F')"><img border="0" src="#" width="13" height="13"></A></TD>
    <TD bgcolor=#E0787F width="13" height="13"><A HREF="javascript:SetColor('E0787F')"><img border="0" src="#" width="13" height="13"></A></TD>
    <TD bgcolor=#CF005F width="13" height="13"><A HREF="javascript:SetColor('CF005F')"><img border="0" src="#" width="13" height="13"></A></TD>
    <TD bgcolor=#DF7000 width="13" height="13"><A HREF="javascript:SetColor('DF7000')"><img border="0" src="#" width="13" height="13"></A></TD>
    <TD bgcolor=#8F003F width="13" height="13"><A HREF="javascript:SetColor('8F003F')"><img border="0" src="#" width="13" height="13"></A></TD>
  </tr>
</TABLE>
</div>
<form method="post" name="OverBet" onsubmit="javascript:return CheckOverBet()" action="<?php echo $_SERVER["PHP_SELF"];?>">
    <table width="580" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="580" height="40"><br><font style="font-size:16px;font-weight:bold"><?php echo $_strPersonalSetup["HtmlTitle"];?></font> - <font style="color:#FF0000"><?php echo $_strPersonalSetup["HtmlTitleDoc"];?></font><br><br>
<?php
	if ($ActionMessage) {
            echo '<font style="font-size:12px;font-weight:bold;color=red">'. $_strPersonalSetup["HtmlMsgTitle"] . $ActionMessage .'</font><br>';
	}
?>
          <table width="100%" border="1" cellpadding="2" cellspacing="0" bordercolorlight="#EEEEEE" bordercolordark="#666666">
            <tr>
              <td class="PersonalCenter10px"><div align="center"><?php echo $_strPersonalSetup["HtmlOnOff"];?></div></td>
              <td class="PersonalCenter10px"><div align="center"><?php echo $_strPersonalSetup["HtmlSubject"];?></div></td>
              <td class="PersonalCenter10px"><div align="center"><?php echo $_strPersonalSetup["HtmlContent"];?></div></td>
            </tr>
            <tr>
              <td width="10%" rowspan="2" class="PersonalCenter10px">
                <input type="checkbox" class="PersonalFormNoBoarder" name="MainOverBetOn" value="1" onclick="javascript:SetFormStatus('MainOverBet')" <?php echo $Obj->bA_MainOverBetOn ? 'CHECKED' : ''?>>
              </td>
              <td width="30%" class="PersonalRight10px"><?php echo $_strPersonalSetup["MainOverBet"];?></td>
              <td class="PersonalLeft10px">&nbsp;<input type="text" class="PersonalForm" name="MainOverBet" value="<?php echo $Obj->bA_MainOverBet;?>" size="40" maxlength="11"></td>
            </tr>
            <tr>
              <td class="PersonalRight10px"><?php echo $_strPersonalSetup["MainOverBetColor"];?></td>
              <td class="PersonalLeft10px">&nbsp;<input type="text" class="PersonalForm" name="MainOverBetColor" value="<?php echo $Obj->bA_MainOverBetColor;?>" size="30" maxlength="7">&nbsp;&nbsp;&nbsp;<a href="#" class="Personal" onclick="javascript:ShowColorLayer('MainOverBet')"><?php echo $_strPersonalSetup["HtmlChoiceColor"];?></a></td>
            </tr>
            <tr>
              <td rowspan="2" class="PersonalCenter10px">
                <input type="checkbox" class="PersonalFormNoBoarder" name="MainSingleEvenOverBetOn" value="1" onclick="javascript:SetFormStatus('MainSingleEvenOverBet')" <?php echo $Obj->bA_MainSingleEvenOverBetOn ? 'CHECKED':''?>>
              </td>
              <td class="PersonalRight10px"><?php echo $_strPersonalSetup["MainSingleEvenOverBet"];?></td>
              <td class="PersonalLeft10px">&nbsp;<input type="text" class="PersonalForm" name="MainSingleEvenOverBet" value="<?php echo $Obj->bA_MainSingleEvenOverBet;?>" size="40" maxlength="11"></td>
            </tr>
            <tr>
              <td class="PersonalRight10px"><?php echo $_strPersonalSetup["MainSingleEvenOverBetColor"];?></td>
              <td class="PersonalLeft10px">&nbsp;<input type="text" class="PersonalForm" name="MainSingleEvenOverBetColor" value="<?php echo $Obj->bA_MainSingleEvenOverBetColor;?>" size="30" maxlength="7">&nbsp;&nbsp;&nbsp;<a href="#" class="Personal" onclick="javascript:ShowColorLayer('MainSingleEvenOverBet')"><?php echo $_strPersonalSetup["HtmlChoiceColor"];?></a></td>
            </tr>
            <tr>
              <td rowspan="2" class="PersonalCenter10px">
                <input type="checkbox" class="PersonalFormNoBoarder" name="MainProportionOverBetOn" value="1" onclick="javascript:SetFormStatus('MainProportionOverBet')" <?php echo $Obj->bA_MainProportionOverBetOn ? 'CHECKED':''?>>
              </td>
              <td class="PersonalRight10px"><?php echo $_strPersonalSetup["MainProportionOverBet"];?></td>
              <td class="PersonalLeft10px">&nbsp;<input type="text" class="PersonalForm" name="MainProportionOverBet" value="<?php echo $Obj->bA_MainProportionOverBet;?>" size="40" maxlength="11"></td>
            </tr>
            <tr>
              <td class="PersonalRight10px"><?php echo $_strPersonalSetup["MainProportionOverBetColor"];?></td>
              <td class="PersonalLeft10px">&nbsp;<input type="text" class="PersonalForm" name="MainProportionOverBetColor" value="<?php echo $Obj->bA_MainProportionOverBetColor;?>" size="30" maxlength="7">&nbsp;&nbsp;&nbsp;<a href="#" class="Personal" onclick="javascript:ShowColorLayer('MainProportionOverBet')"><?php echo $_strPersonalSetup["HtmlChoiceColor"];?></a></td>
            </tr>
            <tr>
              <td rowspan="2" class="PersonalCenter10px">
                <input type="checkbox" class="PersonalFormNoBoarder" name="SpecialOverBetOn" value="1" onclick="javascript:SetFormStatus('SpecialOverBet')" <?php echo $Obj->bA_SpecialOverBetOn ? 'CHECKED':''?>>
              </td>
              <td class="PersonalRight10px"><?php echo $_strPersonalSetup["SpecialOverBet"];?></td>
              <td class="PersonalLeft10px">&nbsp;<input type="text" class="PersonalForm" name="SpecialOverBet" value="<?php echo $Obj->bA_SpecialOverBet;?>" size="40" maxlength="11"></td>
            </tr>
            <tr>
              <td class="PersonalRight10px"><?php echo $_strPersonalSetup["SpecialOverBetColor"];?></td>
              <td class="PersonalLeft10px">&nbsp;<input type="text" class="PersonalForm" name="SpecialOverBetColor" value="<?php echo $Obj->bA_SpecialOverBetColor;?>" size="30" maxlength="7">&nbsp;&nbsp;&nbsp;<a href="#" class="Personal" onclick="javascript:ShowColorLayer('SpecialOverBet')"><?php echo $_strPersonalSetup["HtmlChoiceColor"];?></a></td>
            </tr>
            <tr>
              <td rowspan="2" class="PersonalCenter10px">
                <input type="checkbox" class="PersonalFormNoBoarder" name="SpecialSingleEvenOverBetOn" value="1" onclick="javascript:SetFormStatus('SpecialSingleEvenOverBet')" <?php echo $Obj->bA_SpecialSingleEvenOverBetOn ? 'CHECKED':''?>>
              </td>
              <td class="PersonalRight10px"><?php echo $_strPersonalSetup["SpecialSingleEvenOverBet"];?></td>
              <td class="PersonalLeft10px">&nbsp;<input type="text" class="PersonalForm" name="SpecialSingleEvenOverBet" value="<?php echo $Obj->bA_SpecialSingleEvenOverBet;?>" size="40" maxlength="11"></td>
            </tr>
            <tr>
              <td class="PersonalRight10px"><?php echo $_strPersonalSetup["SpecialSingleEvenOverBetColor"];?></td>
              <td class="PersonalLeft10px">&nbsp;<input type="text" class="PersonalForm" name="SpecialSingleEvenOverBetColor" value="<?php echo $Obj->bA_SpecialSingleEvenOverBetColor;?>" size="30" maxlength="7">&nbsp;&nbsp;&nbsp;<a href="#" class="Personal" onclick="javascript:ShowColorLayer('SpecialSingleEvenOverBet')"><?php echo $_strPersonalSetup["HtmlChoiceColor"];?></a></td>
            </tr>
            <tr>
              <td rowspan="2" class="PersonalCenter10px">
                <input type="checkbox" class="PersonalFormNoBoarder" name="SpecialProportionOverBetOn" value="1" onclick="javascript:SetFormStatus('SpecialProportionOverBet')" <?php echo $Obj->bA_SpecialProportionOverBetOn ? 'CHECKED':''?>>
              </td>
              <td class="PersonalRight10px"><?php echo $_strPersonalSetup["SpecialProportionOverBet"];?></td>
              <td class="PersonalLeft10px">&nbsp;<input type="text" class="PersonalForm" name="SpecialProportionOverBet" value="<?php echo $Obj->bA_SpecialProportionOverBet;?>" size="40" maxlength="11"></td>
            </tr>
            <tr>
              <td class="PersonalRight10px"><?php echo $_strPersonalSetup["SpecialProportionOverBetColor"];?></td>
              <td class="PersonalLeft10px">&nbsp;<input type="text" class="PersonalForm" name="SpecialProportionOverBetColor" value="<?php echo $Obj->bA_SpecialProportionOverBetColor;?>" size="30" maxlength="7">&nbsp;&nbsp;&nbsp;<a href="#" name="lalala" class="Personal" onclick="javascript:ShowColorLayer('SpecialProportionOverBet')"><?php echo $_strPersonalSetup["HtmlChoiceColor"];?></a></td>
            </tr>
          </table>          
        </td>
      </tr>
      <tr align="center" valign="middle">
        <td><br>
          <input name="submit" type="submit" value="<?php echo $_strPersonalSetup["HtmlSubmit"];?>">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <input name="ActionType" type="hidden" value="WriteSetup">
          <input type="reset" name="reset" value="<?php echo $_strPersonalSetup["HtmlReset"];?>">
        </td>
      </tr>
    </table>
</form>
<script language="javascript">
	//設定初始值
	SetFormStatus('MainOverBet');
	SetFormStatus('MainSingleEvenOverBet');
	SetFormStatus('MainProportionOverBet');
	SetFormStatus('SpecialOverBet');
	SetFormStatus('SpecialSingleEvenOverBet');
	SetFormStatus('SpecialProportionOverBet');
</script>
</body>
</html>
<?php @mysql_close($$_Conn);?>